<template>
	<view class="all-main">
		<view class="main">
			<view class="forms">
				<view class="form-item">
					<view class="left">
						<text>公司选择</text>
					</view>
					<view class="right">
						<text class="vlaues">请选择</text>
						<uni-icons type="right"></uni-icons>
					</view>
				</view>
				<view class="form-item">
					<view class="left">
						<text>分站选择</text>
					</view>
					<view class="right">
						<text class="vlaues">请选择</text>
						<uni-icons type="right"></uni-icons>
					</view>
				</view>
				<view class="form-item">
					<view class="left">
						<text>角色选择</text>
					</view>
					<view class="right">
						<text class="vlaues">请选择</text>
						<uni-icons type="right"></uni-icons>
					</view>
				</view>
				<view class="form-item">
					<view class="left">
						<text>姓名</text>
					</view>
					<view class="right">
						<input type="text" v-model="name" placeholder="请输入姓名" />
					</view>
				</view>
				<view class="form-item">
					<view class="left">
						<text>手机号码</text>
					</view>
					<view class="right">
						<input type="number" v-model="phone" placeholder="请输入手机号码" />
					</view>
				</view>
			</view>
			<view class="submit-btn" @tap="register">
				<text>立即申请</text>
			</view>
			<view class="bottoms">
				<text @tap="progress">已经申请，查看进度</text>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				name: '',
				phone: ''
			}
		},
		methods: {
			// 立即申请
			register() {
				console.log('立即申请')
			},
			// 查看进度
			progress() {
				uni.navigateTo({
					url: '/pages/login/progress'
				})
			}
		}
	}
</script>

<style lang="scss">
	.all-main {
		.main {
			padding: 30rpx;
			
			.forms {
				.form-item {
					margin-bottom: 30rpx;
					display: flex;
					justify-content: space-between;
					align-items: center;
					padding-bottom: 30rpx;
					border-bottom: 1px solid #c8c9cc;
					
					.right {
						display: flex;
						justify-content: flex-end;
						align-items: center;
						.vlaues {
							color: #909399;
							margin-right: 30rpx;
						}
						
						input {
							text-align: right;
						}
					}
				}
			}
			
			.submit-btn {
				margin: 50rpx 0;
				background-color: #2979ff;
				color: #ffffff;
				text-align: center;
				padding: 20rpx;
				border-radius: 10rpx;
			}
			
			.bottoms {
				margin-top: 200rpx;
				color: #2979ff;
				text-align: center;
				font-size: 36rpx;
			}
		}
	}
</style>
